{extend name="/base"/}
{block name="html"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>博客列表</legend>
</fieldset>
<table class="layui-hide" id="test"></table>
{/block}

{block name="js"}
<script>
    $("#list-item").attr("class","layui-this")

    layui.use('table', function(){
        var table = layui.table;

        table.render({
            elem: '#test'
            ,url:'{:url("blog/getBlog")}'

            ,cols: [[
                {field:'Id',  title: 'ID', sort: true}
                ,{field:'title',  title: '标题'}

                ,{field:'link', title: '链接'}
                ,{field:'create_time', width:160, title: '创建时间'}

            ]]
        });
    });

</script>

{/block}